rlogin

remote login

Command


SYNOPSIS

rlogin [-ED] [-e char] [-l username] [-t terminal_type] [username@]host


DESCRIPTION

rlogin starts a terminal session on the remote host specified as host. The remote host must be running a rlogind service (or daemon) for rlogin to connect to.

rlogin uses the standard rhosts authorization mechanism.

When no user name is specified either with the -l option or as part of username@hostname, rlogin connects as the user you are currently logged in as. If this is a domain user (that is, of the form domain\username), only the username part is used. To include the domain information, you must use the -l option, domain\username@hostname, or domain/username@hostname.

rlogin actually sends two user names to the rlogind service (or daemon): remuser and locuser.

remuser is your user name that you are currently logged into the client machine as (and includes domain information if you logged in as a domain user). It is called remuser by the service (or daemon) because from the point of view of the service (or daemon), the client machine is remote. remuser is the name that must appear in either the global hosts.equiv file or the appropriate .rhosts file on the server. remuser cannot be set by the user.

locuser is the user name that the service (or daemon) uses to execute the command on the server. Again, it is named as such, because from the point of view of the service (or daemon), the server is the local machine. This is either the user name that you are currently logged in as (minus any domain information if you are a domain user) or the user name explicitly entered on the rlogin command line.

When using rlogin. a line of the form

esc_char.

(where esc_char is the escape character) disconnects from the remote host. By default, the escape character is the tilde (~).

All echoing takes place at the remote site, so that (except for delays) the remote login is transparent. Flow control via ^S/^Q and flushing of input and output on interrupts are handled properly.

Options

-D 

enables socket debugging on the TCP sockets used for communication with the remote host. This option also displays the locuser and remuser being sent to rlogind. This can be useful for determining the exact case of your domain and user names, which must be correct in the .rhosts and hosts.equiv files.

-E 

stops any character from being recognized as an escape character.

-e char 

specifies the character to be used as the escape character. This specification may be as a literal character, or as an octal value in the form \nnn. Without this option, the escape character defaults to the tilde (~).

-l username 

specifies an alternate user name for the remote login. If you do not specify either this option or a username@host argument, your local user name is used.

-t terminal_type 

specifies the terminal type. Only two terminal types are currently supported: dumb and ansi. The default is ansi.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


ACKNOWLEDGEMENT

This product includes software developed by the University of California, Berkeley and its contributors.


PORTABILITY

Windows 95/98. Windows NT 4.0. Windows 2000.


WARNING

Most versions of rlogind have a limit to the length of user name they can handle. As a result, you may receive an error message stating that either remuser or locuser is too long.

When remuser is too long, you need a shorter user name on the client machine (if you are a domain user, remember that the domain information is included in remuser).

When the "locuser is too long" error is received, it means that not only is the locuser name longer than the server's limit, but, by extension, it is an invalid user name on that server.


NOTE

At the current time, the MKS Toolkit product family does not include a rlogind service. Thus, the rlogin command can currently only be used to connect to UNIX systems running rlogind daemons.


AVAILABILITY

MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers


SEE ALSO

File Formats:
hosts.equiv, rhosts